#!/usr/bin/env bash
#下载docker 镜像
echo 'password'|docker login --username=hegaoye@qq.com -p hegaoye6258371 registry.cn-hangzhou.aliyuncs.com
docker pull nginx

#nginx
docker run -p 80:80 -v /home:/home -v /etc/nginx/conf.d:/etc/nginx/conf.d  --privileged=true --name nginx --restart always -d nginx

#tomcat
docker run -p 8088:8080  -v /home/tomcat-task/webapps:/usr/local/tomcat/webapps --privileged=true --name tomcat-task --restart always -d registry.cn-hangzhou.aliyuncs.com/rzhkj/dev:tomcat-8.5
